#ifndef __GOMOKU_H__
#define __GOMOKU_H__

#include<stdio.h>
#include<stdbool.h>

enum Dir
{
  UP,
  DOWN,
  LEFT,
  RIGHT,
  LEFT_UP,
  RIGHT_DOWN,
  LEFT_DOWN,
  RIGHT_UP
};

//玩家
#define PLAYER1 1
#define PLAYER2 2

//数组的行和列
#define ROW 20
#define COL 20

//结束和继续的标志
#define PLAYER_WIN1 1
#define PLAYER_WIN2 2
#define DOGFALL     3
#define NEXT        0

int  Menu();
void Game();
void ShowBoard(int board[ROW][COL]);
void PlayerMove(int board[ROW][COL],int CurPlayer);
int  ChessCount(int board[ROW][COL],enum Dir dir);
int  IsOver(int board[ROW][COL]);

#endif
